/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.osbo.monitor.conectores.mysql;


import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import org.osbo.monitor.conectores.Conector;
import org.osbo.monitor.servidor.DatosServidor;
import org.osbo.monitor.servidor.mysql.ServidorMysql;

/**
 *
 * @author elJefe
 */
public class ConectorMysql implements Conector {

    private Connection connect = null;
    private Statement statement = null;
    private PreparedStatement preparedStatement = null;
    private ResultSet resultSet = null;

    public void Conector() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void conectar() {
        try {
            Class.forName("com.mysql.jdbc.Driver");
            connect = DriverManager.getConnection("jdbc:mysql://localhost/feedback?"
                    + "user=sqluser&password=sqluserpw");
            statement = connect.createStatement();
            resultSet = statement.executeQuery("select * from FEEDBACK.COMMENTS");
            
            
        } catch (Exception ex) {
        }

    }

    public void desconectar() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public DatosServidor Negociar() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
